package com.epoch.dao;

import com.epoch.entity.Consumer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author admin
 */
//告诉springboot这是一个mybatis的mapper类
//将UserDao交由spring容器管理

@Mapper
@Repository
public interface ConsumerDao {

    /**
     * search consumer by id
     * @param csId
     * @return consumer
     */
    Consumer getById(@Param("csId") String csId);

    /**
     * login
     * @param csPhone
     * @param csPwd
     * @return
     */
    Consumer login(@Param("csPhone") String csPhone, @Param("csPwd")  String csPwd);

}
